Utility class to translate enum values into linked useful data. More...
Static Public Member Functions | |
static PIXEL_FORMAT | getRgbFromBgrFormat (PIXEL_FORMAT format) |
static unsigned int | getFormatByteSize (PIXEL_FORMAT format) |
static bool | isFormatCompressed (PIXEL_FORMAT format) |
static bool | isFormatFloatingPoint (PIXEL_FORMAT format) |
static bool | hasAlpha (PIXEL_FORMAT format) |
static float | halfToFloat (unsigned short half) |
Utility class to translate enum values into linked useful data.
|
static |
Provides an RGB format its BGR format equivalent, if available.
format | The format to convert. |
|
static |
Translates a pixel format into its byte size, if it were to be tightly packed.
format | The format value to retrieve the size from. |
|
static |
Allows to check if a format is considered as compressed.
format | The format to check. |
|
static |
Allows to check if a format is using floating point values.
format | The format to check. |
|
static |
Allows to check if a format has an alpha channel.
format | The format to check. |
|
static |
Converts a 2-byte packed half float value into a readable 4-byte float.
half | The value to convert. |